Ektron CMS400.Net Reference

>>Using Widgets > Creating Conditions with the Targeted Content Widget > Customizing the Targeted Content Widget

Customizing the Targeted Content Widget

To create a custom version of the Targeted Content widget (for example, to add rule templates), follow these steps.

  1. Open the site root/widgets/Edit TargetedContent.ascx.cs file.
  2. Create a class, for example, MyRuleTemplate, that inherits Ektron.RuleEditor.RuleTemplate in #region Rule Templates.
  3. Modify private void AddAllRuleTemplates.
  4. Add an instance of your class to the rest of the rule templates. For example, AddRuleTemplate(new MyRuleTemplate());

Visit the Ektron Dev Center at http://dev.ektron.com 1-866 - 4 - EKTRON

Ektron CMS400.NET Reference Version 8.02 SP1 Rev 1

Ektron Documentation,© 2011 Ektron, Inc.